#ifndef _ACCEPTOR_H_
#define _ACCEPTOR_H_

#include "ostype.h"
#include "Socket.h"

class Addr;
class Stream;
class Acceptor : public Socket {
	public:
		Acceptor(Addr& addr,uint16 backlog);
		int open();
		int accept(Stream* stream,Addr* remote_addr);
	private:
		uint16 _backlog;	
		Addr&  _addr;
};

#endif
